package com.fwixvye.controller;

import com.fwixvye.pojo.Result;
import com.fwixvye.pojo.TopBarSumit;
import com.fwixvye.service.CharacterDamageCalculationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 浏览器顶栏提交按钮接口
 * 传入数据 TopBarSumit(roleImgUrl=莫娜, weaponImgUrl=千夜浮梦, reliceImgUrl=[沉沦之心生之花, 水仙之梦生之花])
 * 需要传出 人物信息，武器信息，圣遗物信息
 */
@RestController
@RequestMapping("/CharacterDamageCalculation")
public class CharacterDamageCalculationController {

    @Autowired
    CharacterDamageCalculationService characterDamageCalculationService;

    @PostMapping("/TopBarSumit")
    public Result TopBarSumitController(@RequestBody TopBarSumit topBarSumit){
        return characterDamageCalculationService.searchAll(topBarSumit);
    }


}
